FROM andyorz/minimal-node
MAINTAINER Andy Yuan <andy@ycn.cc>

LABEL namespace="khw"
LABEL name="node-koa"
LABEL version="1.0.0"
LABEL repo="10.3.0.1:5000"

ADD package.json /app/package.json
ADD .nvmrc /app/.nvmrc
ADD dist/ /app/dist/
ADD node_modules/ /app/node_modules/

ENV NODE_ENV production
WORKDIR /app
EXPOSE 9090

CMD ["npm", "run", "cluster"]
